package aip.project.controller.bio.Ricette;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

import aip.project.meta.RicetteMeta;
import aip.project.model.Ricette;
import aip.project.service.RicetteService;

public class FotoRicetteController extends Controller {

    RicetteService service = new RicetteService();
    RicetteMeta meta = new RicetteMeta();
    @Override
    public Navigation run() throws Exception {
        Ricette r = service.getRicetta(asKey(meta.key));
        show("ricetta.png", r.getFoto().getBytes());
        return null;
    }
}
